package com.hitrust.gs.bean;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.hitrust.gs.service.GSBaseBean;

public class GSProductTypeManagerBean implements GSBaseBean{
	
	private String id;
	
	private int product_type;
	
	private String type_name;
	
	private String remark;
	
	private String type_level;
	
	private int upper_type;
	
	private String status;
	
	private String create_user_id;
	
	private String create_user;
	
	private String create_time;
	
	private String last_update_user_id;
	
	private String last_update_user;
	
	private String last_update_time;
	
	
	
	public String getId() {
		return id;
	}



	public void setId(String id) {
		this.id = id;
	}

	public int getProduct_type() {
		return product_type;
	}



	public void setProduct_type(int productType) {
		product_type = productType;
	}



	public String getType_name() {
		return type_name;
	}



	public void setType_name(String typeName) {
		type_name = typeName;
	}



	public String getRemark() {
		return remark;
	}



	public void setRemark(String remark) {
		this.remark = remark;
	}



	public String getType_level() {
		return type_level;
	}



	public void setType_level(String typeLevel) {
		type_level = typeLevel;
	}

	public int getUpper_type() {
		return upper_type;
	}

	public void setUpper_type(int upperType) {
		upper_type = upperType;
	}

	public String getStatus() {
		return status;
	}



	public void setStatus(String status) {
		this.status = status;
	}



	public String getCreate_user_id() {
		return create_user_id;
	}



	public void setCreate_user_id(String createUserId) {
		create_user_id = createUserId;
	}



	public String getCreate_user() {
		return create_user;
	}



	public void setCreate_user(String createUser) {
		create_user = createUser;
	}



	public String getCreate_time() {
		return create_time;
	}



	public void setCreate_time(String createTime) {
		create_time = createTime;
	}



	public String getLast_update_user_id() {
		return last_update_user_id;
	}



	public void setLast_update_user_id(String lastUpdateUserId) {
		last_update_user_id = lastUpdateUserId;
	}



	public String getLast_update_user() {
		return last_update_user;
	}



	public void setLast_update_user(String lastUpdateUser) {
		last_update_user = lastUpdateUser;
	}



	public String getLast_update_time() {
		return last_update_time;
	}



	public void setLast_update_time(String lastUpdateTime) {
		last_update_time = lastUpdateTime;
	}



	public Object process(ResultSet aResultSet) throws SQLException {
		GSProductTypeManagerBean bean = new GSProductTypeManagerBean();
		bean.id = aResultSet.getString("ID");
		bean.create_time = aResultSet.getString("CREATE_TIME")== null ? "" : aResultSet.getString("CREATE_TIME");
		bean.create_user = aResultSet.getString("CREATE_USER")== null ? "" : aResultSet.getString("CREATE_USER");
		bean.create_user_id = aResultSet.getString("CREATE_USER_ID")== null ? "" : aResultSet.getString("CREATE_USER_ID");
		bean.last_update_time = aResultSet.getString("LAST_UPDATE_TIME")== null ? "" : aResultSet.getString("LAST_UPDATE_TIME");
		bean.last_update_user = aResultSet.getString("LAST_UPDATE_USER")== null ? "" : aResultSet.getString("LAST_UPDATE_USER");
		bean.remark = aResultSet.getString("REMARK")== null ? "" : aResultSet.getString("REMARK");
		bean.status = aResultSet.getString("STATUS")== null ? "" : aResultSet.getString("STATUS");
		bean.product_type = aResultSet.getInt("PRODUCT_TYPE");
		bean.type_level = aResultSet.getString("TYPE_LEVEL")== null ? "" : aResultSet.getString("TYPE_LEVEL");
		bean.type_name = aResultSet.getString("TYPE_NAME")== null ? "" : aResultSet.getString("TYPE_NAME");
		bean.upper_type = aResultSet.getInt("UPPER_TYPE");
		
		return bean;
	}

}
